package com.example.initproj.base.result

/**
 * 2020/6/30
 * xiang
 * Description:
 **/
fun succeed(data: Any?) = Result(SUCCESS.code, SUCCESS.msg, data)
fun succeed() = succeed(null)
fun failed(err: AError) = Result(err.code, err.msg, null)
